package com.tvwidgetlib;

import android.content.Context;
import android.util.AttributeSet;

import androidx.recyclerview.widget.RecyclerView;

public class VerticalRecyclerView extends RecyclerView {

    public VerticalRecyclerView(Context context) {
        super(context);

    }

    public VerticalRecyclerView(Context context, AttributeSet attrs,
                                int defStyle) {
        super(context, attrs, defStyle);

    }

    public VerticalRecyclerView(Context context, AttributeSet attrs) {
        super(context, attrs);

    }

    @Override
    public void smoothScrollBy(int dx, int dy) {
        if (dy > 0) {
            super.scrollBy(dx, dy + 100);
        } else if (dy < 0) {
            super.scrollBy(dx, dy - 100);
        } else {
            super.scrollBy(dx, dy);
        }

    }
}
